package com.example.iot.queue.message;

import com.alibaba.fastjson.util.Base64;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.UUID;

/**
 * @author ChenXiangpeng
 */
@Data
@NoArgsConstructor
public class DefaultQueueMsg implements QueueMsg {
    private UUID key;
    protected byte[] data;

    public DefaultQueueMsg(UUID key) {
        this.key = key;
        //this.headers = headers;
    }

    @Override
    public UUID getKey() {
        return this.key;
    }

    @Override
    public byte[] getData() {
        return this.data;
    }
}
